<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>移动办公平台</title>
    <!--bootstrap v3的核心样式-->
    <link rel="icon" href="/static/pic/logo2.png" type="image/x-icon"/>
      <link href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css"
          rel="stylesheet">

    {% block css %}{% endblock %}

    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css"
          rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
     <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/moment.js/2.24.0/moment-with-locales.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>


</head>
<body>

<nav class="navbar navbar-default">
    {#<nav class="navbar navbar-inverse">#}
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">

            <a class="navbar-brand" href=# style="margin: 10px 15px 0 5px;padding: 0 0 0 0;">
                <img alt="Brand" src="/static/pic/logo2.png" style="height: 30px;">
            </a>

            <a class="navbar-brand" href=#>富力集团西北区域公司</a>

        </div>

        {#    一级标题#}
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="{{ buildUrl('/collect/collectall') }}" name="collect">信息收集系统<span
                        class="sr-only">(current)</span></a></li>
                {% if current_user.role != '用户' %}
                    <li><a href="{{ buildUrl('/ht') }}?uid={{ current_user.id }}" name="index">移动办公平台后台</a></li>
                {% endif %}
                {% for item in current_user.role | tolist %}
                    {% if item == "系统管理员" %}
                        <li><a href="{{ buildUrl('/member/admin') }}?city={{ current_user.city }}" name="member">人员管理</a></li>
                    {% endif %}
                {% endfor %}


                {#                <li><a href="{{ buildUrl('/parter/parterindex') }}">承建商档案信息存档<span class="sr-only">(current)</span></a>#}
                {#                </li>#}
                {#                 <li><a href="{{ buildUrl('/plan/') }}">招标计划纠偏系统<span class="sr-only">(current)</span></a>#}
                {#                </li>#}
                {#                <li><a href="{{ buildUrl('/template/template') }}">模板中心<span class="sr-only">(current)</span></a>#}
                {#                </li>#}

            </ul>


            </form>
            <ul class="nav navbar-nav navbar-right">

                {#                <li><a href="{{ buildUrl('/document') }}" style="color: #6f9dc2">发布通知</a></li>#}
                {#                <li><a href="{{ buildUrl('/record') }}" style="color: #6f9dc2">操作记录查询</a></li>#}
                {#                <li><a href="{{ buildUrl('/member/admin') }}" style="color: #6f9dc2">人员权限管理</a></li>#}
                {% if current_user %}
                    <li><a href="javascript:void(0);">{{ current_user.nickname }}</a></li>
                    <li><a href="javascript:void(0);">{{ current_user.company }}</a></li>
                    <li><a href="{{ buildUrl('/member/logout') }}">退出</a></li>
                {% else %}
                    <li><a href="{{ buildUrl('/member/reg') }}">注册</a></li>
                    <li><a href="{{ buildUrl('/member/login') }}">登录</a></li>
                {% endif %}
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="container-fluid" style="min-height: 700px;margin-top: 10px;">
    {% block content %} {% endblock %}
</div>
<footer class="text-center">
    ©Copyright 2020 太原富力城房地产开发有限公司版权所有 | 晋ICP备2020013633号-1
</footer>

<script src="{{ buildStaticUrl('/plugins/jquery.min.js') }}"></script>
<script src="{{ buildStaticUrl('/plugins/bootstrap_v3/js/bootstrap.min.js') }}"></script>
<script src="{{ buildStaticUrl('/plugins/layer/layer.js') }}"></script>
<script src="{{ buildStaticUrl('/js/common.js') }}"></script>

<script>
    $(function () {
        $(".collapse").find("li").each(function () {
            var a = $(this).find("a:first")[0];
            if ($(a).attr("name") === location.pathname.split("/")[1]) {
                $(this).addClass("active");
            } else {
                $(this).removeClass("active");
            }
        });
    })
</script>

{% block js %} {% endblock %}
</body>
</html>